<?php
	$user = $this->session->userdata(USUARIO);   
?>
<div class="header">
	<div class="header_resize">
		<div class="logo">
			<h1>
				<a href="./">Saldo<span>Completo</span><small>Controle de despesas</small>
				</a>
			</h1>
		</div>
		<div class="menu_nav">
			<ul>
				<?php if($user == null){?>
				<li id="login">
					<?php echo anchor("/home/login","Login");?>
				</li>
				<li id="cadastro">
					<?php echo anchor("/home/cadastro","Cadastrar-se");?>
				</li>
				<?php }else{?>
				<li id="resumo">
					<?php echo anchor("/gastos/resumo","Resumo");?>
				</li>
				<li id="gastos">
					<?php echo anchor("/gastos/gastos","Gastos");?>
				</li>
				<li id="ganhos">
					<?php echo anchor("/ganhos/ganhos","Ganhos");?>
				</li>
				<li id="categorias">
					<?php echo anchor("/categoria/categorias","Categorias");?>
				</li>
				<?php }?>
			</ul>
		</div>
		<div class="clr"></div>
		<?php if($user != null){?>
		<div style="text-align:right;height:50px; width: 970px;">
			Logado como <?php echo $user->nome;?>, <?php echo anchor("/home/sair","sair");?>
		</div>
		<?php }?>
	</div>
</div>
